package com.wit.witmg.api;


import com.wit.witmg.service.ITComService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author bob
 * @since 2025-09-19
 */
@RestController
@RequestMapping("com")
public class ComController {
    @Resource
    private ITComService service;

    @ApiOperation("添加")
    @PostMapping("add")
    public Object create(HttpServletRequest request,
                         @RequestParam("command") String command) {
        return service.add(request,command);
    }

    @ApiOperation("测试")
    @PostMapping("test")
    public Object test(HttpServletRequest request,
                         @RequestParam("command") String command) {
        return service.test(request,command);
    }
}
